#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
from datetime import datetime
from typing import Optional

from pydantic import BaseModel, Field, UUID4
from sqlalchemy.orm import Mapped


class ChatMessagesModel(BaseModel):
    payload_id: str = Field(default='888888888888', description='用户标识')
    message: list = Field(default=[], description='用户聊天历史')


class ChatMessagesModels(BaseModel):
    id: int
    uuid: UUID4
    payload_id: str
    message: list
    created_at: datetime
    updated_at: datetime
    is_deleted: bool
